<template>
	<div>
		<sub-vue textone="大"></sub-vue>
		<button @click="listen">监听</button>
	</div>
</template>
<script>
	import connector from './connector.js';
	
	export default {
		data() {
				return {
					text2: '哈哈'
				}
			},
			//属于组件
			methods: {
				listen() {
					connector.$on("phone", function(msg){
						console.log(msg);
					})
				}
			},
			components: {}
	}
</script>
<style>

</style>